<?php
/**
 * Created by PhpStorm.
 * Author: sitenv@aliyun.com
 * CreateTime: 2023/8/20 19:06
 * Blog：www.myblogs.xyz
 */

namespace app\interfaces\validate;

use app\infrastructure\base\BaseValidate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'user_id'=>'require|integer',
        'amount'=>'require|float|gt:0|elt:50000'
    ];

    protected $message = [
        'amount.elt'=>'单笔订单金额不能超过5万元'
    ];
}